package cn.learn.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 获取es的id和端口
 *
 * @author huangyezhan
 * @version 1.0
 * @date 2020年07月09日9:45
 */
@Component
@ConfigurationProperties(prefix = "es")
public class ElasticsearchProperties {
    /**
     * es的IP和端口
     */
    private String[] ips;
    /**
     * 默认的索引名称
     */
    private String   indexName;


    public String[] getIps() {
        return ips;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIps(String[] ips) {
        this.ips = ips;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }


}
